const CreateReadStream = require('./readStream')
const CreateWriteStream = require('./writeStream')
const path = require('path')

const rs = new CreateReadStream(path.resolve(__dirname, 'pipe专用.md'), { highWaterMark: 4 })
const ws = new CreateWriteStream(path.resolve(__dirname, 'pipe复制.md'), { highWaterMark: 1 })

rs.pipe(ws)

/**
 * 1 可读流 子类继承Readable  可写流子类继承Writeable
 *  可读流 调用的是 read -> _read(fs.read)  可写流 write -> _write(fs.write)
 *  

 * 
 * 
 */


